package com.bjpowernode.cabstractfactory;

/*
    抽象工厂
 */
public class TestAbstractFactory {
    public static void main(String[] args) {
        //创建小米工厂对象
        XiaoMi12Factory factory = new XiaoMi12Factory();
        Charger charger = factory.produceCharger();
        Telephone telephone = factory.produceTelephone();

        charger.charge();
        telephone.play();
    }
}
